{extend name="public/base" /} {block name="body"}

<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>保证金列表</strong></li>
	</ol>
</div>

<div class="ibox-content">
	<ul class="nav nav-tabs">
			<li id="li-bar-busi" class="active">
				<a href="{:url('bondrec')}">保证金变化记录</a>
			</li>
			<li id="li-bar-member">
				<a href="{:url('sq_bzjs')}">保证金申请退款审核</a>
			</li>
		</ul>
	<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('bondrec')}">
		<div class="row">
			<span class="bspan">商家名称</span> <input type="text" id="name" name="name" placeholder="请输入商家名称" value="" class="bank" />
			<span class="bspan">添加时间</span> <input type="text" id='add_time' name='add_time' onclick='WdatePicker()' placeholder="添加时间" class="bank" />
			<input type="text" id='end_time' name='end_time' onclick='WdatePicker()' placeholder="结束时间" class="bank" />
			<span class="blank" style="border-radius:0px;border:1px;">
			<button type="submit" class="btn btn-sm btn-primary"><li class="fa fa-search"> 查询</li></button> 
			<a href="#" onclick="check()" class="btn btn-primary btn-outline">导出信息</a></span>
			</span>
		</div>
	</form>
	<div class="hr-line-dashed"></div>
	<div class="example-wrap">
		<div class="example">
			<table class="table table-bordered table-hover">
				<thead>
					<tr class="long-tr">
						<th class="text-center">商户名称</th>
						<th class="text-center">保证金</th>
						<th class="text-center">充值类型</th>
						<th class="text-center">充值时间</th>
					</tr>
				</thead>
				<tbody id="list"  class="text-center">
					{volist name="list" id='ad'}
					<tr>
						<td>{$ad.store_name}</td>
						<td>{$ad.balance}</td>
						<td>
							{$ad.message}
						</td>
						<td>{$ad.add_time}</td>
					</tr>
					{/volist}
				</tbody>
			</table>
			<div style="text-align: right;">
				{$list->render()}
			</div>

		</div>
	</div>
</div>
</div>
{/block} {block name="script"}
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
	function check(){
		var name = $('#name').val();
		var add_time = $('#add_time').val();
		var end_time = $('#end_time').val();
		window.location.href = "/adminmall/paylog/bonddc.html?name="+ name+"&add_time="+ add_time+"&end_time="+ end_time;
	}
</script>
{/block}